package org.bigjava.travel.service;

import org.bigjava.travel.bean.Porvice;
import org.bigjava.travel.bean.User;

import java.util.List;

/**
 * 用户业务逻辑层<接口>
 */

public interface UserService {

    public long count()throws Exception;

    public User findById(Integer id)throws Exception;

    public User findByUserName(String userName)throws Exception;

    public List<User> findList()throws Exception;

    public void save(User user)throws Exception;

    public void update(User user)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<User> findByPage(int currentPage,int pageSize, String query)throws Exception;

    public List<Porvice> countPorvice()throws Exception;

    public User login(String userName, String password)throws Exception;

    public long state1count()throws Exception;

    public long state2count()throws Exception;

}
